import java.sql.Date;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.TimeZone;

public class DateTest {
	

	/**
	 * @param args
	 * @throws ParseException 
	 */
	public static void main(String[] args) throws ParseException {
		String test = "2012-06-02 00:00:00.0 - 2012-06-14 00:00:00.0";
		String[] split = test.split(" - ");
		System.out.println(split[0]);
	}

	private static String getStringInTimeStampFormat(String old) {
		String newTS = old;
		newTS = newTS.replace('T',' ').substring(0, newTS.lastIndexOf('-'));
		return newTS;
	}

}
